package com.ereconquista.dao;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import com.ereconquista.modelo.Moneda;
import java.io.Serializable;
import java.util.List;


/**
 *
 * @author ctrosch
 */

public class MonedaDAO extends BaseDAO<Moneda> implements Serializable {
    
    // Add business logic below. (Right-click in editor and choose
    // "Insert Code > Add Business Method")

    public Moneda getMoneda(String codcof){

        return getObjeto(Moneda.class, codcof);
    }

    public List<Moneda> getLista(){
        String sQuery = "SELECT m FROM Moneda m WHERE m.codigo = 'USD' OR m.codigo = 'ARS'";
        return execQueryList(sQuery);
    } 
}
